package com.suray.system.run.impl;

import com.suray.system.run.instance.SystemMonitorInstance;
import com.suray.wcs.service.util.WcsUtil;

public class SystemMonitorApp {

    private static SystemMonitorImpl systemMonitor;

    public static void init() {
        systemMonitor = new SystemMonitorImpl();
        SystemMonitorInstance.initSystemMonitor(systemMonitor);

        systemMonitor.init();
    }

    public static void run() {
        try {
            systemMonitor.run();
        } catch (Exception e) {
            WcsUtil.exceptionLog(e, SystemMonitorApp.class);
        }
    }
}
